#include <iostream>
#include "user/IUser.h"
#include "user/Factory.h"
#include <string>

using namespace std;

int main() {
    string userType;
    char *password = new char[20];
    char *username = new char[20];
    IUser *user;
    cin >> userType >> username >> password;
    user = Factory((userType.c_str()), username, password);
    cout << (char *) (user->Login()) << endl;
    return 0;
}
